import request from "@/utils/request";

export default {
  getTabelInfo(data) {
    return request({
      url: '/dblink/get_table_info?tableName='+ data.tablename + '&dbLinkId='+ data.linkid,
      method: "get",
    });
  },
  getExportInfo(data) {
    return request({
      url: '/dblink/partial_export?' + data.path,
      method: "post",
      data: data.body
    });
  },
  getFullExport(data) {
    return request({
      url: '/dblink/full_export?' + data.path,
      method: "post",
      data: data.body
    });
  },
  getHistory(data) {
    return request({
      url: '/history/all',
      method: "get",
    });
  },
  getHistoryDetail(data) {
    return request({
      url: 'history_info/get?historyId=' + data.historyid,
      method: "get",
    });
  },
}
